package a_interface;

public class DemoTest {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.sleep();
        dog.eat();//继承Animals
        dog.run();
        dog.jump();//实现接口的——InterfaceDemoA
        dog.m1();
        dog.m2();
        int NUM=10;
        Pig pig=new Pig();
      pig.eat();
      pig.run();
      pig.sleep();
      pig.m3();
      pig.m5();


    }
}
